<%! from mtp.model import Page %>
<div id="wikistructure" class="box">
    % if c.parents:
    <div class="parents">
    <h1>${'Parents' if len(c.parents) > 1 else 'Parent'}</h1>
    <ul>
    % for parent in c.parents:
        <li><a href="${h.url_for('page', id=parent.parent_page.urlTitle())}">${parent.parent_page.title}</a></li>
    % endfor
    </ul>
    </div>
    % endif

    % if c.children:
    <div class="children">
    <h1>Children</h1>
    <ul>
    % for child in c.children:
        <li><a href="${h.url_for('page', id=child.page.urlTitle())}">${child.page.title}</a></li> 
    % endfor   
    </ul>
    </div>
    % endif

</div>
